<extend name="../Public/model" />
<block name="title">编辑{$TITLE}</block>
<block name="body">
    <form class="form form-horizontal form-validate" id="form-ajax-Form" action="{:U('edit')}" method="post">
        <input type="hidden" name="id" value="{$detail.id}" />
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>链接名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.webname}" datatype="*1-16" nullmsg="链接名称不能为空" name="webname">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>链接地址：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.url}" datatype="*1-128" nullmsg="链接地址不能为空" name="url">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>排序：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.sort}" datatype="*1-6" nullmsg="排序不能为空" name="sort">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">站长EMAIL：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="email" value="{$detail.email}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">站长QQ：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="qq" value="{$detail.qq}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">网站简况：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <textarea name="msg" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" onKeyUp="$.Huitextarealength(this,100)">{$detail.msg}</textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">是否启用：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="radio-box">
                    <input name="status" type="radio"  value="1" id="status-1" <if condition="$detail.status eq 1">checked</if>>
                    <label for="status-1">是</label>
                </div>
                <div class="radio-box">
                    <input name="status" type="radio"  value="0" id="status-2" <if condition="$detail.status eq 0">checked</if>>
                    <label for="status-2">否</label>
                </div>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-8 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</block>